package com.itheima.service.impl;


import com.itheima.dao.StudentDao;
import com.itheima.pojo.Student;
import com.itheima.service.IStudentService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 哈纳桑
 * @since 2024-04-24
 */
@Service
public class StudentServiceImpl implements IStudentService {

    private StudentDao studentDao;

    public void setStudentDao(StudentDao studentDao) {
        this.studentDao = studentDao;
    }

    public List<Student> getAll() {
        List<Student> studentList = studentDao.findAll();
        return studentList;
    }

}
